package com.example.yiwei.crm.view.frament.jdjyframent;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.view.activity.jdjycooractivity.NewWorkActivity;
import com.example.yiwei.crm.view.activity.jdjycooractivity.SHMessageActivity;

/**
 * Created by DHN on 2017/7/31.
 */

public class JDJYMessageFrament extends Fragment {
    private LinearLayout linearLayout1,linearLayout2;
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootview=inflater.inflate(R.layout.frament_jdjymessage,container,false);
        linearLayout1 = (LinearLayout) rootview.findViewById(R.id.jyjd_linear_work);
        linearLayout2 = (LinearLayout) rootview.findViewById(R.id.jyjd_linear_sh);
        linearLayout1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), NewWorkActivity.class);
                startActivity(intent);
            }
        });
        linearLayout2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), SHMessageActivity.class);
                startActivity(intent);
            }
        });
        return rootview;
    }
}
